/*
Sample Input

3
1 1
2 3
4 3
Sample Output

Scenario #1:
A1

Scenario #2:
impossible

Scenario #3:
A1B3C1A2B4C2A3B1C3A4B2C4

*/
#include <iostream>
using namespace std;

bool DFS(int i, int j)
{
	return true;
}


int main()
{
    int n;
	int row, col;
	cin >> n;
	int caseNum = 0;
	for (int i = 1; i <= n; i++)
	{
		printf("Scenario #%d:\n", i);
		string str;
		cout << str << endl;
	}
}























